Delete asset by its id
Removes an asset with the given ID if possible. Deleting an asset is only possible if that asset is not yet referenced by a contract agreement, in which case an error is returned. DANGER ZONE: Note that deleting assets can have unexpected results, especially for contract offers that have been sent out or ongoing or contract negotiations.
Path Parameters
- id string required
Responses
- 200
- 400
- 404
- 409
Asset was deleted successfully
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
{
"message": "string",
"level": "string"
}
Request body was malformed, e.g. id was null
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
- result string
{
"message": "string",
"level": "string",
"result": "string"
}
An asset with the given ID does not exist
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
- result string
{
"message": "string",
"level": "string",
"result": "string"
}
The asset cannot be deleted, because it is referenced by a contract agreement
- application/json
- Schema
- Example (from schema)
Schema
- message string
- level string
- result string
{
"message": "string",
"level": "string",
"result": "string"
}
Loading...